package cn.csq.lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author <a href="mailto:csq02198031@alibaba-inc.com">chengshanqing</a>
 * @date 2025/10/23 17:28
 */
public class LockMain1 {

   static ReentrantLock reentrantLock = new ReentrantLock();

    public static void main(String[] args) {

    }


    public static void run() {
        reentrantLock.lock();
        try {
            // todo
        }finally {
            reentrantLock.unlock();
        }

    }
}
